package com.persons.springbootproject.entity;

public class Teacher {
    private Integer id;
    private String name;
    private Integer age;
    private String sex;
    private String course;
    private String college;

    public Teacher() {
    }

    public Teacher(Integer id, String name, Integer age, String sex, String course) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.course = course;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public void job(){
        System.out.println("改作业");
    }

    public void enjoy(){
        System.out.println("看书，听音乐");
    }


    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", course='" + course + '\'' +
                ", college='" + college + '\'' +
                '}';
    }
}

